import request from '@/utils/request'

// 查询用电安全列表
export function listWbElecSafety(query) {
  return request({
    url: '/wb/wbElecSafety/list',
    method: 'get',
    params: query
  })
}

// 查询用电安全详细
export function getWbElecSafety(id) {
  return request({
    url: '/wb/wbElecSafety/' + id,
    method: 'get'
  })
}

// 新增用电安全
export function addWbElecSafety(data) {
  return request({
    url: '/wb/wbElecSafety',
    method: 'post',
    data: data
  })
}

// 修改用电安全
export function updateWbElecSafety(data) {
  return request({
    url: '/wb/wbElecSafety',
    method: 'put',
    data: data
  })
}

// 删除用电安全
export function delWbElecSafety(id) {
  return request({
    url: '/wb/wbElecSafety/' + id,
    method: 'delete'
  })
}


// 下载
export function getExportPdf(id) {
  return request({
    url: '/wb/wbPlan/exportPdf?planId=' + id,
    method: 'get'
  })
}
